package com.bean.dangBean;
/**
 * 消费者信息表实体类
 */

import java.io.Serializable;

public class Consumer implements Serializable {
    /*主键id*/
    private Integer id;
    /*消费者姓名*/
    private String userName;
    /*消费者电话*/
    private String phone;
    /*消费者地址*/
    private String address;
    /*消费者性别*/
    private Integer sex;

    public Consumer() {
    }

    public Consumer(String userName, String phone, String address, Integer sex) {
        this.userName = userName;
        this.phone = phone;
        this.address = address;
        this.sex = sex;
    }

    public Consumer(Integer id, String userName, String phone, String address, Integer sex) {
        this.id = id;
        this.userName = userName;
        this.phone = phone;
        this.address = address;
        this.sex = sex;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public Integer getSex() {
        return sex;
    }

    public void setSex(Integer sex) {
        this.sex = sex;
    }

    @Override
    public String toString() {
        return "Consumer{" +
                "id=" + id +
                ", userName=" + userName +
                ", phone='" + phone + '\'' +
                ", address='" + address + '\'' +
                ", sex=" + sex +
                '}';
    }
}
